package com.yuhang.demo;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import com.yuhang.demo.util.PostUtil;

public class ItegralAutoTest {

	public static String scoreGet() throws Exception {
		String url = ItegralTest.api + "/integral/scoreGet";
		List<NameValuePair> formparams = new ArrayList<NameValuePair>();
		formparams.add(new BasicNameValuePair("userId", "1"));
		formparams.add(new BasicNameValuePair("code", "adPay"));
		formparams.add(new BasicNameValuePair("outPlatform", "GO2"));
		formparams.add(new BasicNameValuePair("targetId", "1"));
		formparams.add(new BasicNameValuePair("wValue", "1"));
		return PostUtil.httpPost(url, formparams);
	}
}
